<template>
	<view class="assitant-item" @click="assistantClick">
		<image class="user-img" mode="aspectFill" :src="itemData.sculptureUrl"></image>
		<view class="user-name-row">
			<view class="user-name-text">{{itemData.name}}</view>
			<image class="level-img" mode="aspectFill" :src="itemData.picture"></image>
		</view>
		<view class="info-row">
			<view class="price-text">￥{{itemData.gradePriceStr}}</view>
			<view class="time-text">/小时</view>
			<assistant-computed-info type="state" :state="itemData.orderReceivingState" :stateText="itemData.orderReceivingStateDesc"></assistant-computed-info>
		</view>
		<view style="height: 20rpx;"></view>
	</view>
</template>

<script>
	export default {
		props: {
			itemData: {
				type: Object,
			},
		},
		data() {
			return {
				
			}
		},
		methods: {
			assistantClick(){
				this.$emit('itemClick')
			}
		}
	}
</script>

<style lang="less" scoped>
	.assitant-item{
		width: 100%;
		display: flex;
		flex-direction: column;
		background: #FFFFFF;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
		.user-img{
			width: 100%;
			height: 450rpx;
			border-radius: 16rpx 16rpx 0rpx 0rpx;
		}
		.user-name-row{
			display: flex;
			flex-direction: row;
			align-items: center;
			margin-top: 24rpx;
			margin-left: 20rpx;
			.user-name-text{
				font-size: 28rpx;
				color: #021624;
				font-weight: 500;
				margin-right: 8rpx;
			}
			.level-img{
				width: 90rpx;
				height: 32rpx;
			}	
		}
		.info-row{
			display: flex;
			flex-direction: row;
			align-items: center;
			margin-top: 12rpx;
			margin-left: 18rpx;
			.price-text{
				font-size: 28rpx;
				color: #ED3C3D;
				font-weight: 500;
			}
			.time-text{
				font-size: 24rpx;
				color: #585F70;
			}
		}
	}
</style>
